#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
    int a = 0;

    scanf("%d", &a);


    printf("year=%d\n", a / 10000);
    a %= 10000;
    printf("month=%02d\n", a / 100);
    printf("date=%02d\n", a % 100);

    return 0;
}



int main() {
	int year;
	int month;
	int date;
	scanf("%4d%2d%2d", &year, &month, &date);
	printf("year=%d\n", year);
	printf("month=%02d\n", month);
	printf("date=%02d", date);
}